home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-10-23 | 1.8 KB | 78 lines |
- #
- # Dice Makefile for MUI custom class demonstration programs;
- # uses EasyLibs.
- #
-
-
-
- ##########################################################################
- # Definitions used in MuiClassHeader.c
- ##########################################################################
- LIBNAME=UserData.mcc
- LIBVERSION=9
- LIBREVISION=11
- LIBINITFUNC=__UserLibInit
- LIBTERMFUNC=__UserLibCleanup
- #LIBOPENFUNC=-DLIBOPENFUNC=MyOpenFunc
- LIBOPENFUNC=
- #LIBCLOSEFUNC=-DLIBCLOSEFUNC=MyCloseFunc
- LIBCLOSEFUNC=
- #LIBBASESIZE="-DLIBBASESIZE=sizeof(struct Library)"
- LIBBASESIZE=
-
-
-
-
-
- ##########################################################################
- # Use this to compile with Dice
- ##########################################################################
- CC=dcc
- CFLAGS= -DLIBNAME=$(LIBNAME) -DLIBVERSION=$(LIBVERSION) \
- -DLIBREVISION=$(LIBREVISION) -DLIBINITFUNC=$(LIBINITFUNC) \
- -DLIBTERMFUNC=$(LIBTERMFUNC) $(LIBOPENFUNC) $(LIBCLOSEFUNC) \
- $(LIBBASESIZE) -proto \
- -IMUI:Developer/C/Include
-
- LN=dcc
- LFLAGS= -l0 -lc -lamiga30 -lmui:Developer/C/DLib/mui
- TO=-o
- NOLINK=-c
- LINK=
-
-
-
-
-
- ###########################################################################
- # You should not need to change anything below
- ###########################################################################
-
- # Main targets: all clean
-
- all: mui/UserData.mcc ShowUserData
-
- clean:
- delete quiet #?.o mui/UserData.mcc ShowUserData
-
-
- #
- # Stuff for creating the library
- #
- mui/UserData.mcc: MuiClassHeader.o UserData.o
- $(LN) $(TO) mui/UserData.mcc $(LFLAGS) MuiClassHeader.o UserData.o
-
- MuiClassHeader.o: MuiClassHeader.c
- $(CC) $(CFLAGS) $(NOLINK) MuiClassHeader.c
-
- UserData.o: UserData.c
- $(CC) $(CFLAGS) $(NOLINK) UserData.c
-
-
- #
- # Stuff for creating the executable
- #
- ShowUserData: ShowUserData.c
- $(CC) $(LINK) $(CFLAGS) $(TO) ShowUserData ShowUserData.c \
- -IMUI:Developer/C/Examples -lMUI:Developer/C/DLib/mui
-